package com.bawei.login.model


import com.bawei.login.api.LoginApiServer
import com.bawei.login.entity.UserEntity
import com.bawei.network.BaseResponse
import javax.inject.Inject

class LoginRepository @Inject constructor(private val apiServer: LoginApiServer) {

    suspend fun loginToServer(userName: String, password: String): BaseResponse<UserEntity> {
        return apiServer.userLogin(userName, password)
    }



}